<div>
  <form name="linetrip" class="form-validation">

  	<div class="form-inline">
    	<div class="form-group">
	      	<p class="form-control-static">行程特色：</p>
	    </div>
	    <div class="form-group">
	    	<input type="text" class="form-control"
            ng-model="result.characteristic_words_arr"
			style="width: 450px"
            >(以逗号分隔)
	    </div>
    </div>


    <div class="form-inline mt10">
    	<div class="form-group">
	      	<p class="form-control-static">天数：</p>
	    </div>
	    <div class="form-group">
	    	<select class="form-control"
	    	style="width: 100px;margin-right:5px;"
	    	ng-model="result.day"
	    	ng-change="change(result.day)"
	    	ng-options="info.value as info.name for info in showinfo.day">
			</select>
	    </div>
	    <div class="form-group">
	      	<p class="form-control-static">天</p>
	    </div>
	    <div class="form-group">
	    	<select class="form-control"
	    	style="width: 100px;margin-right:5px; margin-left: 5px;"
	    	ng-model="result.night"
	    	ng-options="info.value as info.name for info in showinfo.evening">
			</select>
	    </div>
	    <div class="form-group">
	      	<p class="form-control-static">晚</p>
	    </div>

	    <div class="form-group ml10">
	      	<p class="form-control-static">因航班原因增加</p>
	    </div>
	    <div class="form-group">
	    	<select class="form-control"
	    	style="width: 100px;margin-right:5px; margin-left: 5px;"
	    	ng-model="result.flight_reason"
	    	ng-options="info.value as info.name for info in showinfo.flight">
			</select>
	    </div>
	    <div class="form-group">
	      	<p class="form-control-static">天</p>
	    </div>
    </div>


    <div class="form-group mt10">

    	<accordion close-others="oneAtATime">

		    <!-- class="b-success" -->
		    <accordion-group
		    	ng-repeat="day in result.days"
		    	is-open=true
		    >
		        <accordion-heading>
		            第 {{$index + 1}} 天
		        </accordion-heading>


		        <div class="form-inline">
			    	<div class="form-group">
				      	<p class="form-control-static">标题：</p>
				    </div>
					 <div class="form-group">
				    	<select class="form-control"
				    	style="width: 150px;margin-right:5px;margin-left:5px;"
				    	ng-model="day.title.by"
				    	ng-options="info.value as info.name for info in showinfo.to">
						</select>
				    </div>
				    <div class="form-group">
				    	<input type="text" class="form-control"
			            ng-model="day.title.start"
			            >
				    </div>

				    <div class="form-group" ng-if="day.title.by!=5">
						至
				    	<input type="text" class="form-control"
			            ng-model="day.title.end"
			            >
				    </div>
				    <div class="form-group pull-right">
				    	<a href ng-click="upday($index)"
				    	ng-show="$index != 0">
		            		<i class="fa fa-arrow-up ml10"></i> 上移一天
		            	</a>
		            	<a href ng-click="downday($index)"
		            	ng-show="$index != result.days.length - 1">
		            		<i class="fa fa-arrow-down ml10"></i> 下移一天
		            	</a>
		            	<a href ng-click="removeday($index)"
		            	ng-show="result.days.length != 1"
		            	>
		            		<i class="glyphicon glyphicon-remove ml10"></i> 删除
		            	</a>
				    </div>
			    </div>


			    <div class="form-inline mt10"
			    ng-repeat="t in day.trip track by $index"
				style="border-bottom: 1px solid #eaeff0;"
			    >

			    	<div class="form-inline">
				    	<!--<div class="form-group">
					      	<p class="form-control-static">点击设置时间</p>
					    </div>-->
					    <div class="form-group">
					    	<p class="form-control-static ml10">{{t.name}}</p>
					    </div>
				    </div>

				    <!-- 交通 -->
				    <div class="form-inline" ng-if="t.id == 't0'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>
					    <div class="form-group">
					    	<select class="form-control"
					    	style="width: 150px;margin-right:5px;margin-left:5px;"
					    	ng-model="t.by"
					    	ng-options="info.value as info.name for info in showinfo.to">
							</select>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.end"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">交通时长:</p>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.time"
				            style="width: 100px;"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">分钟</p>
					    </div>
				    </div>



				    <!-- 景点 -->
				    <div class="form-inline" ng-if="t.id == 't1'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>

					    <div class="form-group">
					    	<p class="form-control-static ml10">游玩时长:</p>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.time"
				            style="width: 100px;"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">分钟</p>
					    </div>
				    </div>



				    <!-- 住宿 -->
				    <div class="form-inline" ng-if="t.id == 't2'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>
				    </div>


				    <!-- 用餐 -->
				    <div class="form-inline" ng-if="t.id == 't3'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>

					    <div class="form-group">
					    	<p class="form-control-static ml10">用餐时长:</p>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.time"
				            style="width: 100px;"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">分钟</p>
					    </div>
				    </div>


				    <!-- 购物 -->
				    <div class="form-inline" ng-if="t.id == 't4'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>

					    <div class="form-group">
					    	<p class="form-control-static ml10">购物时长:</p>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.time"
				            style="width: 100px;"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">分钟</p>
					    </div>
				    </div>


				    <!-- 活动 -->
				    <div class="form-inline" ng-if="t.id == 't5'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>

					    <div class="form-group">
					    	<p class="form-control-static ml10">活动时长:</p>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.time"
				            style="width: 100px;"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">分钟</p>
					    </div>
				    </div>


				    <!-- 推荐项目 -->
				    <div class="form-inline" ng-if="t.id == 't6'">
				    	<div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.start"
				            >
					    </div>

					    <div class="form-group">
					    	<p class="form-control-static ml10">项目时长:</p>
					    </div>
					    <div class="form-group">
					    	<input type="text" class="form-control"
				            ng-model="t.time"
				            style="width: 100px;"
				            >
					    </div>
					    <div class="form-group">
					    	<p class="form-control-static ml10">分钟</p>
					    </div>
				    </div>



				    <!-- 温馨提示 -->
				    <div class="form-inline" ng-if="t.id == 't7'">
				    	<div class="form-group">
					    	<input type="text" class="form-control" 
				            ng-model="t.start"
				            >
					    </div>
				    </div>



				   	<div class="form-group mt10">

				    	<textarea class="form-control" rows="3"
			              ng-model="t.info"
			              style="width: 700px;"

			              ></textarea>
			        </div>



			        <div class="mt10">
			        	<button class="btn m-b-xs w-sm btn-success" ng-click="image($parent.$index,$index)">
			        		<i class="fa fa-file-image-o" ></i> 添加图片
			        	</button>
			        	<button class="btn m-b-xs w-xs btn-primary" ng-click="up($index,day)">
			        		<i class="fa fa-arrow-up"></i> 上移
			        	</button>
			        	<button class="btn m-b-xs w-xs btn-info" ng-click="down($index,day)">
			        		<i class="fa fa-arrow-down"></i> 下移
			        	</button>
			        	<button class="btn m-b-xs w-xs btn-danger" ng-click="remove($index,day)">
			        		<i class="fa fa-trash-o"></i> 删除
			        	</button>
			        </div>
					<div class="col-sm-12">
						<div class="form-group col-sm-4"  ng-repeat="img in imgarr[$parent.$index][$index]" >
								<img  src={{img}}  alt=""  class="col-sm-8" style="height: 120px">
								<button style="margin-top: 50px" class="btn m-b-xs btn-sm btn-info btn-addon" ng-click="remove1($parent.$parent.$index,$parent.$index,$index)">
									<i class="fa fa-trash-o" ></i> 删除
								</button>
							
						</div>
					</div>
			    </div>
				

			    <div class="form-inline mt10">
			    	<div class="">
				      	<div class="">添加行程：</div>
				    </div>
				    <div class="form-group">
				    	<label ng-repeat="item in showinfo.triptype"
		                class="i-checks  checkbox-inline">
		                  <input type="radio" value={{item.value}} name="haha{{day.$$hashKey}}"
		                  ng-model="day.triptype"
		                  >
		                  <i></i>
		                  {{item.name}}
		                </label>
				    </div>
				    <div class="form-group">
				    	<button type="button" class="btn btn-info ml10"
					      ng-click="addtrip(day)"
					      >添加</button>
				    </div>
			    </div>



		    </accordion-group>


		  </accordion>


    </div>


    <div class="m-t m-b">

      <button type="submit" class="btn btn-default btn-rounded"
      ng-click="gogogo()"
      >保存</button>

    </div>

  </form>
</div>